import request from '@/utils/request'

// 查询景区 列表
export function listScenic(query) {
  return request({
    url: '/travel/scenic/list',
    method: 'get',
    params: query
  })
}

// 删除景区图片
export function delImg(data) {
  return request({
    url: '/travel/scenic/delImg',
    method: 'post',
    data: data
  })
}

// 查询景区 详细
export function getScenic(id) {
  return request({
    url: '/travel/scenic/' + id,
    method: 'get'
  })
}

// 新增景区
export function addScenic(data) {
  return request({
    url: '/travel/scenic',
    method: 'post',
    data: data
  })
}

// 修改景区
export function updateScenic(data) {
  return request({
    url: '/travel/scenic',
    method: 'put',
    data: data
  })
}

// 删除景区
export function delScenic(id) {
  return request({
    url: '/travel/scenic/' + id,
    method: 'delete'
  })
}

// 导出景区
export function exportScenic(query) {
  return request({
    url: '/travel/scenic/export',
    method: 'get',
    params: query
  })
}
